﻿using AutoClickTool.Enums;
using WindowsInput;

namespace AutoClickTool.Models
{
    public class ClickModel
    {
        public ClickModel(ActionTypeEnum actionType)
        {
            this.ActionType = actionType;
        }
        /// <summary>
        /// 动作类型
        /// </summary>
        public ActionTypeEnum ActionType { get; }
        /// <summary>
        /// 按键名称(鼠标、键盘)
        /// </summary>
        public Keys? KeyCode { get; set; }
        /// <summary>
        /// 动作回放
        /// </summary>
        public string? PlayBackName { get; set; }
        /// <summary>
        /// 文本内容
        /// </summary>
        public string? TextValue { get; set; }
        /// <summary>
        /// 等待时间/ms(1s=1000ms)
        /// </summary>
        public int? WaitTime { get; set; }
        /// <summary>
        /// 是否自动抬起
        /// </summary>
        public bool AutoUp { get; set; } = true;
        /// <summary>
        /// 循环次数
        /// </summary>
        public int? LoopNum { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
